home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Utilities / System Utility / Reset Desktop / Source / Source Read Me < prev   
Text File  |  1993-02-14  |  1KB  |  24 lines

  1. Source Notes
  2. ************
  3.  
  4. Reset DTDBs is very, very simple--shows a few dialogs, calls a few Desktop Manager
  5. functions, and then restarts. If you are not familiar with the Desktop Manager, it
  6. would do you good to read pages 9-44 to 9-60 in Inside Macintosh VI before you
  7. read the source. The code simply cycles through the VCB and calls 
  8. PBDTCloseDown(), PBDTFlush(), and PBDTDelete() on each vRefNum in the VCB queue.
  9. The done() macro compares its argument to the qTail of the VCB queue, and then
  10. checks to see if there is only one mounted volume (as the case may be.) If these
  11. are both true, then the whole VCB has been scanned, and the loop stops.
  12.  
  13. The compiled program is now distributed with the source. I imagine (although I am
  14. not sure) that it could be ported to MPW C very easily. You are free to use elements
  15. of the Reset DTDBs code in your programs, if you include the phrase "Portions
  16. copyright © 1992-1993 Brian Gaeke" in your about box.
  17.  
  18. The source code to Reset DTDBs is copyright © 1992-1993 Brian Gaeke. All rights
  19. reserved worldwide except where specifically permitted.
  20.  
  21. Brian Gaeke
  22.  Internet: brg@dgate.org
  23.  GEnie: BRG
  24.